public class Test1 {
    public static void main(String[] args) {
        RBTree rb = new RBTree();
        int[] array={4,2,6,1,3,5,15,7,16,14};
        for (int i = 0; i < array.length; i++) {
            rb.insert(array[i]);
        }
        rb.inorder(rb.root);
        System.out.println();
        System.out.print(rb.isRBTree(rb.root)+" ");
    }
}
